<?php echo $this->Session->flash(); ?>
<?php echo $form->create('Construction');?>
<?php $bloqueo = $this->Session->read('bloqueo_avaluo'); ?>
<table border="0">

    <tbody>
        <tr>
            <td><?php echo $form->input("Construction.nombre", array('label' => 'Nombre de la construcción')); ?></td>
            <td><?php echo $form->hidden("Construction.property_id"); ?></td>
            <td><?php ?></td>
        </tr>
        <tr>
            <td><?php echo $form->input('Construction.estructura', array('label' => "Estructura")); ?></td>
            <td><?php echo $form->input("Construction.muros", array('label' => "Muros")); ?></td>
            <td><?php echo $form->input("Construction.cubierta", array('label' => "Cubierta")); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->input("Construction.fachada", array('label' => "Fachada")); ?></td>
            <td><?php echo $form->input("Construction.puertas", array('label' => "Puertas")); ?></td>
            <td><?php echo $form->input("Construction.ventanas", array('label' => "Ventanas")); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->input('Construction.acabados_pisos', array('label' => 'Acabados Pisos')); ?></td>
            <td><?php echo $form->input('Construction.cocina', array('label' => "Cocina")); ?></td>
            <td><?php echo $form->input('Construction.banio', array('label' => 'Baño')); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->input('Construction.estado_conservacion', array('label' => 'Estado De conservación','options'=>array('Sin registro'=>'Sin registro', 'Bueno'=>'Bueno','Malo'=>'Malo','Regular'=>'Regular'))); ?></td>
            <td><?php echo $form->input('Construction.vetustez', array('label' => 'Vetustez (Edad en años)')); ?></td>
            <td><?php echo $form->input('Construction.area', array('label' => 'Area')); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->input('Construction.unidad_de_medida', array('label' => 'Unida de medida','options'=>array('Sin registro'=>'Sin registro','m'=>'m','m2'=>'m2','m3'=>'m3'))); ?></td> 
            <td colspan="2"><?php echo $form->input('Construction.distribucion_interna', array('label' => 'Distribución Interna' )); ?></td>
                 
        </tr>
    </tbody>
</table>





<div id="load" style="display: none;">
<?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<?php
if ($bloqueo == "No")
    echo $ajax->submit('Guardar', array('url' => array('controller' => 'Constructions', 'action' => 'edit', $this->data['Construction']['id']), 'update' => 'cont_caract', 'complete' => '', 'indicator' => 'load'));
echo $form->end();
echo $ajax->link("Regresar", array('controller' => 'Constructions', "action" => "index", $this->data['Construction']['property_id']), array('update' => 'cont_caract', 'complete' => '','indicator' => 'load'));
?>








